package cn.edu.suda.catalina.dataupdate.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 *
 * @author admin
 * @date 2017/5/11
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("index");
        registry.addViewController("/jumbotron").setViewName("html/jumbotron");
        //用户引导
        registry.addViewController("/videodemo").setViewName("html/guide/videodemo");
        registry.addViewController("/textdescription").setViewName("html/guide/textdescription");
        //动作录制
        registry.addViewController("/graphicdescription").setViewName("html/record/graphicdescription");
        registry.addViewController("/download").setViewName("html/record/download");
        //文件上传
        registry.addViewController("/scriptfile").setViewName("html/upload/scriptfile");
        registry.addViewController("/datafile").setViewName("html/upload/datafile");
        //脚本管理
        registry.addViewController("/editchange").setViewName("html/management/editchange");
        registry.addViewController("/scriptmanagement").setViewName("html/management/scriptmanagement");
        //数据处理
        registry.addViewController("/fieldfilter").setViewName("html/process/fieldfilter");
        registry.addViewController("/fieldconsolidation").setViewName("html/process/fieldconsolidation");
        registry.addViewController("/fieldsplit").setViewName("html/process/fieldsplit");
        //调度控制
        registry.addViewController("/newtask").setViewName("html/control/newtask");
        registry.addViewController("/fieldmapping").setViewName("html/control/fieldmapping");
        registry.addViewController("/controlexecution").setViewName("html/control/controlexecution");
        registry.addViewController("/resultshow").setViewName("html/control/resultshow");
        registry.addViewController("/fragment").setViewName("html/control/fragment");
        //个人中心
        registry.addViewController("/personalinformation").setViewName("html/center/personalinformation");
        registry.addViewController("/feedbackcenter").setViewName("html/center/feedbackcenter");
        //系统设置
        registry.addViewController("/admininformation").setViewName("html/setting/admininformation");
        registry.addViewController("/usermanagement").setViewName("html/setting/usermanagement");

        registry.addViewController("/login").setViewName("html/login");
        registry.addViewController("/home").setViewName("html/home");
        registry.addViewController("/info").setViewName("html/info");
        registry.addViewController("/upload").setViewName("html/upload");
    }
}
